<?php if ($sf_user->isAnonymous()): ?>

<a href="<?=url_for("sfGuardAuth/signin")?>">Logheaza-te!</a>

<?php else: ?>

Logat ca <a href="<?=url_for("sfGuardUser/edit?id={$sf_user->getGuardUser()->getId()}")?>" title="editeaza"><?=$sf_user->getUsername()?></a>.
<a href="<?=url_for("sfGuardAuth/signout")?>">Logout</a>.

<?php endif; ?>